<!DOCTYPE html>
{% load staticfiles %}
<html>

<head>
	<meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
	<title>慕学网首页</title>
	<link rel="stylesheet" type="text/css" href="{% static 'css/reset.css' %}">
	<link rel="stylesheet" type="text/css" href="{% static 'css/login.css' %}">
    <script src="{% static 'js/jquery.min.js' %}" type="text/javascript"></script>
    <script src="{% static 'js/unslider.js' %}" type="text/javascript"></script>
    <script src="{% static 'js/validateDialog.js' %}"  type="text/javascript"></script>
    <script src="{% static 'js/util/myUtil.js' %}" type="text/javascript"></script>
    <script>
        $(function(){
            $('img.captcha').on("click",function(){
                $.get("/captcha/refresh/?"+Math.random(),function(result){
                    $("img.captcha").attr("src",result.image_url);
                    $('#id_captcha_0').attr("value",result.key);
                })
            })
        })
    </script>
</head>
<body>

<header>
    <div class="c-box fff-box">
        <div class="wp header-box">
            <p class="fl hd-tips">慕学网，在线学习平台！</p>
            <ul class="fr hd-bar">
                <li>服务电话：<span>88888888</span></li>
                <li><a href="{% url 'users:login' %}">[登录]</a></li>
                <li class="active"><a href="{% url 'users:passwordForget' %}">[忘记密码]</a></li>
            </ul>
        </div>
    </div>
</header>
<section>
    <div class="c-box bg-box">
        <div class="login-box clearfix">
            <div class="hd-login clearfix">
                <a class="index-logo" href="{% url 'index' %}"></a>
                <h1>忘记密码</h1>
                <a class="index-font" href="{% url 'index' %}">回到首页</a>
            </div>
            <div class="fl slide">
                <div class="imgslide">
                    <ul class="imgs">
                        <li><a href=""><img width="483" height="472" src="{% static 'images/57a801860001c34b12000460.jpg' %}" /></a></li>
                        <li><a href=""><img width="483" height="472" src="{% static 'images/57a801860001c34b12000460.jpg' %}"/></a></li>
                        <li><a href=""><img width="483" height="472" src="{% static 'images/57a801860001c34b12000460.jpg' %}" /></a></li>
                    </ul>
                </div>
                <div class="unslider-arrow prev"></div>
                <div class="unslider-arrow next"></div>
            </div>
<script>
function checkFields(){
    return true
    var account = $("#account").val()
    if(!$.lixing.checkEmail(account)){
        alert("邮箱格式不正确!")
        $("#id_email").parents().addClass("errorput")
        return false
    }
    return true
}
</script>
            <div class="fl form-box">
                <h2>忘记密码</h2>
                <form action="{% url 'users:passwordForget' %}" onsubmit="return checkFields()" id="jsFindPwdForm" method="post" autocomplete="off">
                {% csrf_token %}
                    <div class="form-group marb20 " {% if passwordForgetForm.errors.email %}errorput{% endif %}>
                        <label>帐&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
                        <input style="width:194px" type="text" id="account" name="email" value="" placeholder="邮箱" />
                    </div>
                    <div class="form-group captcha1 marb38" {% if passwordForgetForm.errors.captcha %}errorput{% endif %}>
                        <label>验&nbsp;证&nbsp;码</label>{{ passwordForgetForm.captcha }}
                    </div>
                    <div class="error btns" id="jsForgetTips">
                    {{ msg }}
                    {% for key,error in passwordForgetForm.errors.items %}
                    {{ error }}
                    {% endfor %}
                    </div>
                    <input type="hidden" name="sms_type" value="1">
                    <input class="btn btn-green" id="jsFindPwdBtn" type="submit" value="提交"/>
                    <p class="form-p" style="bottom:40px;">您还可以<a href="{% url 'users:login' %}"> [直接登录]</a></p>
                    <input id="isLogin" type="hidden" value="False"/>
                </form>
            </div>
        </div>
    </div>
</section>
</body>
</html>
